from django.contrib import admin 
from tjango.modules.models import system
from models import *

class ItemLibro_Inline(admin.TabularInline):
	name = "ItemLibro_Inline"
	model = ItemLibro
	extra = 10
	min_num_in_admin = 10

class Prestamo_admin(admin.ModelAdmin): 
    model = Prestamo 
    
    inlines = [ItemLibro_Inline] 
    save_on_top = True
		
admin.site.register(Autor)
admin.site.register(Libro)
admin.site.register(Cliente)
admin.site.register(Prestamo,Prestamo_admin)
